<%@ page language="java"%>
<%@ page import="java.util.List" %>
<%@ page import="java.text.NumberFormat" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.Date" %>
<%@ page import=" BE.Producto" %>
<%@ page import=" BE.Pedido" %>
<%@ page import=" BE.Condicionpago" %>
<%@ page import=" java.util.Calendar" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<html:html locale="true">
<head>
    <title>mobVerPedido</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="minimum-scale=1.0, width=device-width, maximum-scale=1.6, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon" href="mobVerPedido/Images/WebClipIcon.png">
    <link rel="stylesheet" href="mobVerPedido/mobVerPedido.css">
    <link rel="stylesheet" href="mobVerPedido/Parts/Transitions.css">
    <script type="text/javascript" src="mobVerPedido/Parts/setup.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobVerPedido/mobVerPedido.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobVerPedido/Parts/Header.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobVerPedido/Parts/utilities.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobVerPedido/Parts/Transitions.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobVerPedido/Parts/StackLayout.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobVerPedido/Parts/Browser.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobVerPedido/Parts/Text.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobVerPedido/Parts/List.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobVerPedido/Parts/PushButton.js" charset="utf-8"></script>
    <script type="text/javascript" src="mobVerPedido/Parts/ButtonHandler.js" charset="utf-8"></script>
    <script type="text/javascript" charset="utf-8">
    <%
        String strMensaje= "";

        if((request!=null)&&(request.getAttribute("strMensaje")!=null)&&(!request.getAttribute("strMensaje").equals("")))
        {
            strMensaje = (String) request.getAttribute("strMensaje");

        }

        String strIdCliente=(String) session.getAttribute("IdCliente");
    %>
    <%
          NumberFormat NF = NumberFormat.getInstance();
        NF.setMaximumFractionDigits(2); //2 decimales
        Pedido objPedido=(Pedido)session.getAttribute("Pedido");

        List<Producto> vectorProducto=null;
        if(session.getAttribute("arrLineaPedido")!=null) {
            vectorProducto=(List<Producto>)session.getAttribute("arrLineaPedido");
        };

        List<Integer> arrCantidad=null;

        if(session.getAttribute("arrCantidades")!=null)
        {
            arrCantidad = (ArrayList<Integer>)session.getAttribute("arrCantidades");
        }
        //Agregado Cecv 11/06
         List<Double> arrPrecio=null;
        
         int CantidadProductos=0;
         for (int i=0; i<arrCantidad.size(); i++)
         {
            CantidadProductos+= arrCantidad.get(i);

         }
       
         Date fechaRegistro = new Date();
         if(session.getAttribute("fechaRegistro")!=null)
        {
            fechaRegistro = (Date)session.getAttribute("fechaRegistro");
        }
         
         //Fin Cecv 11/06 (abajo agregue otro)

        List<Condicionpago> vectorCondicionpago=null;
        if(session.getAttribute("arrCondicionpago")!=null) {
            vectorCondicionpago=(List<Condicionpago>)session.getAttribute("arrCondicionpago");
        };

        int idCondicionpago=(Integer)session.getAttribute("idCondicionpago");


    %>

   var parks=new Array(<%= vectorProducto.size() %>);

<%

   for(int i=0; i<vectorProducto.size(); i++)
   {    out.println("parks["+ i +"]  = new Array("+"\"" +(vectorProducto.get(i)).getCvNombre()+"  -  " + arrCantidad.get(i) + "\""+","+"\""+(vectorProducto.get(i)).getCvObservacion()+"\""+","+"\""+(vectorProducto.get(i)).getCvDescripcion()+"\""+","+"\""+(vectorProducto.get(i)).getCvImagen()+"\""+","+"\""+(vectorProducto.get(i)).getIntStockminimo()+"\""+","+"\""+(vectorProducto.get(i)).getRlPreciocosto()+"\""+");");
   }


%>
	addEventListener('load', function() {
		setTimeout(hideAddressBar, 0);
	}, false);
	function hideAddressBar() {
		window.scrollTo(0, 1);
	}
    </script>
</head>
<body onload="load();">
    <input type="hidden" id="mensaje" value="<%= strMensaje%>">
  <html:form action="mobVerPedido">
      <input type="hidden" name="IdCliente" id="IdCliente" value="<%= strIdCliente %>">
<input type="hidden" name="indiceEliminar" id="indiceEliminar" value="">

    <div apple-part="com.apple.Dashcode.part.browser" id="browser">
        <div apple-part="com.apple.Dashcode.part.header" apple-part-locked="true" apple-style="image-theme: 2; image-shape: 3; image-button-type: 3; image-opacity: 1.00; image-top-color: 0.592156887,0.65882355,0.741176486,1; image-bottom-color: 0.411764711,0.513725519,0.635294139,1; image-radius: 0,0,0,0; image-border: 0; image-border-color: 0.529399991,0.529399991,0.529399991,1; image-border-width: 0; shine-on: 1; shine-strength: 0.08; shine-alpha-level: 0.00; shine-height: 0.50; glass-arc-height: 0.00; image-include-custom: 1; image-custom-image-path: header.png; image-custom-center: 1; image-custom-resize: 2; shadow-include-shadow: 0;" apple-group="header" id="header">
            <div apple-part="com.apple.Dashcode.part.gobackbutton" id="back_button" class="apple-no-children back_button_template dashcode-header-backbutton" apple-part-locked="true" apple-text-overflow="ellipsis" apple-style="image-theme: 0; image-shape: 11; image-button-type: 0; image-opacity: 1.00; image-top-color: 0,0,0,1; image-bottom-color: 0.239130437,0.239130437,0.239130437,1; image-radius: 5,5,5,5; image-border: 1; image-border-color: 0,0,0,0.2; image-border-width: 1; shine-on: 1; shine-strength: 0.17; shine-alpha-level: 0.04; shine-height: 0.50; glass-arc-height: 0.00; embossed-on: 1; embossed-depth: 1; embossed-shadow: 0.68; embossed-highlight: 0.3; shadow-include-shadow: 0;" apple-template="true"></div>
        </div>
        <div apple-part="com.apple.Dashcode.part.StackLayout" apple-part-locked="true" id="stackLayout">
            <div id="listLevel" apple-part-locked="true">
                <div apple-part="com.apple.Dashcode.part.box" id="box">
                    <!--si sakas este boton se kae U_U <div apple-part="com.apple.Dashcode.part.pushbutton" class="apple-no-children" apple-text-overflow="ellipsis" apple-style="image-theme: 2; image-shape: 3; image-button-type: 0; image-opacity: 1.00; image-top-color: 0.290196091,0.423529416,0.607843161,1; image-bottom-color: 1,1,1,1; image-radius: 5,5,5,5; image-border: 1; image-border-color: 0,0,0,0.2; image-border-width: 1; shine-on: 1; shine-strength: 0.50; shine-alpha-level: 0.25; shine-height: 0.50; glass-arc-height: 0.00; embossed-on: 1; embossed-depth: 1; embossed-shadow: 0.68; embossed-highlight: 0.3; image-include-custom: 1; shadow-include-shadow: 0;" id="btnAgregar"></div>-->
                

                <input type="button" id="btnAgregar" onclick="regresar();"></input>

                    <div apple-part="com.apple.Dashcode.part.pushbutton" class="apple-no-children" apple-text-overflow="ellipsis" apple-style="image-theme: 2; image-shape: 3; image-button-type: 0; image-opacity: 1.00; image-top-color: 0.290196091,0.423529416,0.607843161,1; image-bottom-color: 1,1,1,1; image-radius: 5,5,5,5; image-border: 1; image-border-color: 0,0,0,0.2; image-border-width: 1; shine-on: 1; shine-strength: 0.50; shine-alpha-level: 0.25; shine-height: 0.50; glass-arc-height: 0.00; embossed-on: 1; embossed-depth: 1; embossed-shadow: 0.68; embossed-highlight: 0.3; image-include-custom: 1; shadow-include-shadow: 0;" id="btnGuardar"></div>
                    <!-- Agregado Cecv 11/06-->
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtTotal">S/. <%out.println(NF.format(objPedido.getRlMontooriginal()).toString());%></div>
                    <!-- Fin Cecv 11/06-->
                </div>
                <ul apple-part="com.apple.Dashcode.part.edgeToEdgeList" id="list">
                    <li id="listRowTemplate" class="listRowTemplate_template" apple-template="true">
                        <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children rowTitle_template" apple-text-overflow="ellipsis" id="rowTitle"></div>
                        <div apple-part="com.apple.Dashcode.part.box" id="rowArrow" class="rowArrow_template"></div>
                        <img src="mobVerPedido/Images/Photo%2028.jpg" id="img" class="img_template"></li>
                        
                </ul>
                <div apple-part="com.apple.Dashcode.part.box" id="box1" apple-group="box1">
                    <!--<div apple-part="com.apple.Dashcode.part.pushbutton" class="apple-no-children" apple-text-overflow="ellipsis" apple-style="image-theme: 2; image-shape: 3; image-button-type: 0; image-opacity: 1.00; image-top-color: 0.290196091,0.423529416,0.607843161,1; image-bottom-color: 1,1,1,1; image-radius: 8,8,8,8; image-border: 1; image-border-color: 0,0,0,0.2; image-border-width: 1; shine-on: 1; shine-strength: 0.50; shine-alpha-level: 0.25; shine-height: 0.50; glass-arc-height: 0.00; embossed-on: 1; embossed-depth: 1; embossed-shadow: 0.68; embossed-highlight: 0.3; image-include-custom: 1; shadow-include-shadow: 0;" id="btnCancelarPedido" onmousedown="return cancelarPedido(event)"></div>-->
                </div>
            </div>
            <div id="detailLevel" apple-part-locked="true">
                <div apple-part="com.apple.Dashcode.part.box" id="gbxStock1" apple-group="gbxStock1">
                    <img src="mobVerPedido/Images/Image(106).jpg" id="imgProducto" apple-group="gbxStock1">
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-text-overflow="ellipsis" id="detailTitle" apple-style="part-width-dependent: true;part-height-dependent: true;"></div>
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="detailLocation" apple-style="part-width-dependent: true;part-height-dependent: true;"></div>
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="detailDescription" apple-style="part-width-dependent: true;part-height-dependent: true;"></div>
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtPrecio1"></div>
                </div>
                <!--
                <div apple-part="com.apple.Dashcode.part.pushbutton" class="apple-no-children" apple-text-overflow="ellipsis" apple-style="image-theme: 0; image-shape: 3; image-button-type: 0; image-opacity: 1.00; image-top-color: 1,1,1,1; image-bottom-color: 1,1,1,1; image-radius: 8,8,8,8; image-border: 1; image-border-color: 0.674509823,0.674509823,0.674509823,1; image-border-width: 1; shine-on: 0; shine-strength: 0.17; shine-alpha-level: 0.04; shine-height: 0.50; glass-arc-height: 0.00; embossed-on: 0; embossed-depth: 1; embossed-shadow: 0.68; embossed-highlight: 0.3; shadow-include-shadow: 0;" id="btnCantidad"></div>
                
                <div apple-part="com.apple.Dashcode.part.pushbutton" class="apple-no-children" apple-text-overflow="ellipsis" apple-style="image-theme: 0; image-shape: 3; image-button-type: 0; image-opacity: 1.00; image-top-color: 1,1,1,1; image-bottom-color: 1,1,1,1; image-radius: 8,8,8,8; image-border: 1; image-border-color: 0.674509823,0.674509823,0.674509823,1; image-border-width: 1; shine-on: 0; shine-strength: 0.17; shine-alpha-level: 0.04; shine-height: 0.50; glass-arc-height: 0.00; embossed-on: 0; embossed-depth: 1; embossed-shadow: 0.68; embossed-highlight: 0.3; shadow-include-shadow: 0;" id="btnBonificacion"></div>
                -->

                <div apple-part="com.apple.Dashcode.part.box" id="gbxStock" apple-group="settingsGroup">
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtStock"></div>
                    <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtStockValue"></div>
                </div>
                <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtInfo" apple-style="part-width-dependent: true;part-height-dependent: true;"></div>
                <!--<div apple-part="com.apple.Dashcode.part.pushbutton" class="apple-no-children" apple-text-overflow="ellipsis" apple-style="image-theme: 0; image-shape: 3; image-button-type: 0; image-opacity: 1.00; image-top-color: 1,0,0,1; image-bottom-color: 1,1,1,1; image-radius: 5,5,5,5; image-border: 1; image-border-color: 0,0,0,0.2; image-border-width: 1; shine-on: 1; shine-strength: 0.50; shine-alpha-level: 0.25; shine-height: 0.50; glass-arc-height: 0.00; embossed-on: 1; embossed-depth: 1; embossed-shadow: 0.68; embossed-highlight: 0.3; shadow-include-shadow: 0;" id="btnEliminarProducto"></div>-->
				
            </div>
            <div id="cantidad" apple-part-locked="true">
                <input type="text" name="" value="Cantidad" class="apple-textfield apple-no-children" apple-part="com.apple.Dashcode.part.textfield" id="txtCantidad" onkeypress="return isNumberKey(event)" onclick="limpiarContenidoCantidad(event)">
                <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtInformacionCantidad" apple-style="part-height-dependent: true;"></div>
            </div>
            <div id="bonificaciones" apple-part-locked="true">
                <select apple-part="com.apple.Dashcode.part.inputpopupbutton" apple-style-relative="height: 20px;" id="cbxBonificaciones" apple-group="cbxBonificaciones">
                    <option class="apple-hidden" id="text" style="">Item 1</option>
                    <option class="apple-hidden" id="text1" style="">Item 2</option>
                    <option class="apple-hidden" id="text2" style="">Item 3</option>
                </select>
                <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtInformacionBonificaciones" apple-style="part-width-dependent: true;part-height-dependent: true;"></div>
            </div>
            <div id="checkout" apple-part-locked="true"><img src="mobVerPedido/Images/top%201.png" id="img1">
                <div apple-part="com.apple.Dashcode.part.ColumnLayout" id="columnLayout" apple-group="columnLayout">
                    <div apple-part-locked="true" class="apple-collapse" apple-group="columnLayout" style="position: relative; display: table-cell; vertical-align: top; height: auto; width: 100%; "><div id="column" apple-part-locked="true" apple-group="columnLayout">
                            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="lblCantProductosFin"></div>
                            <!-- Agregado Cecv 11/06-->
                            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtCantProductosFin"><%out.println(CantidadProductos);%></div>
                            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="lblSubtotalFin"></div>
                            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtSubtotalFin">S/. <%out.println(NF.format(objPedido.getRlMontooriginal()).toString());%></div>
                            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="lblDescuentosFin"></div>
                            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtDescuentosFin">S/. <%out.println(NF.format(objPedido.getRlMontooriginal().doubleValue()-objPedido.getRlMontototal().doubleValue()).toString());%></div>
                            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="lblFechaEntregaFin"></div>
                            <!-- Fin Cecv 11/06-->
                            <%
                            int day = fechaRegistro.getDate();
                            int month = fechaRegistro.getMonth() + 1;
                            int year = fechaRegistro.getYear()+1900;
                            
                            %>
                            <input type="hidden" id="dia_actual" value="<%= day%>">
                            <input type="hidden" id="mes_actual" value="<%= month%>">
                            <input type="hidden" id="anio_actual" value="<%= year%>">
                            <select apple-part="com.apple.Dashcode.part.inputpopupbutton" apple-style-relative="height: 20px;" name="cmbDia" id="cbxDia" onchange="validafecha(event)" apple-group="popup" disabled="true">
                                <option class="apple-hidden" <% if (day==1) {out.print("selected");}%>>1</option>
                                <option class="apple-hidden" <% if (day==2) {out.print("selected");}%>>2</option>
                                <option class="apple-hidden" <% if (day==3) {out.print("selected");}%>>3</option>
                                <option class="apple-hidden" <% if (day==4) {out.print("selected");}%>>4</option>
                                <option class="apple-hidden" <% if (day==5) {out.print("selected");}%>>5</option>
                                <option class="apple-hidden" <% if (day==6) {out.print("selected");}%>>6</option>
                                <option class="apple-hidden" <% if (day==7) {out.print("selected");}%>>7</option>
                                <option class="apple-hidden" <% if (day==8) {out.print("selected");}%>>8</option>
                                <option class="apple-hidden" <% if (day==9) {out.print("selected");}%>>9</option>
                                <option class="apple-hidden" <% if (day==10) {out.print("selected");}%>>10</option>
                                <option class="apple-hidden" <% if (day==11) {out.print("selected");}%>>11</option>
                                <option class="apple-hidden" <% if (day==12) {out.print("selected");}%>>12</option>
                                <option class="apple-hidden" <% if (day==13) {out.print("selected");}%>>13</option>
                                <option class="apple-hidden" <% if (day==14) {out.print("selected");}%>>14</option>
                                <option class="apple-hidden" <% if (day==15) {out.print("selected");}%>>15</option>
                                <option class="apple-hidden" <% if (day==16) {out.print("selected");}%>>16</option>
                                <option class="apple-hidden" <% if (day==17) {out.print("selected");}%>>17</option>
                                <option class="apple-hidden" <% if (day==18) {out.print("selected");}%>>18</option>
                                <option class="apple-hidden" <% if (day==19) {out.print("selected");}%>>19</option>
                                <option class="apple-hidden" <% if (day==20) {out.print("selected");}%>>20</option>
                                <option class="apple-hidden" <% if (day==21) {out.print("selected");}%>>21</option>
                                <option class="apple-hidden" <% if (day==22) {out.print("selected");}%>>22</option>
                                <option class="apple-hidden" <% if (day==23) {out.print("selected");}%>>23</option>
                                <option class="apple-hidden" <% if (day==24) {out.print("selected");}%>>24</option>
                                <option class="apple-hidden" <% if (day==25) {out.print("selected");}%>>25</option>
                                <option class="apple-hidden" <% if (day==26) {out.print("selected");}%>>26</option>
                                <option class="apple-hidden" <% if (day==27) {out.print("selected");}%>>27</option>
                                <option class="apple-hidden" <% if (day==28) {out.print("selected");}%>>28</option>
                                <option class="apple-hidden" <% if (day==29) {out.print("selected");}%>>29</option>
                                <option class="apple-hidden" <% if (day==30) {out.print("selected");}%>>30</option>
                                <option class="apple-hidden" <% if (day==31) {out.print("selected");}%>>31</option>
                                
                            </select>
                            <select apple-part="com.apple.Dashcode.part.inputpopupbutton" apple-style-relative="height: 20px;" name="cmbMes" id="cbxMes" onchange="validafecha(event)" apple-group="popup1" disabled="true">
                                <option class="apple-hidden" value="1" <% if (month==1) {out.print("selected");}%> >Enero</option>
                                <option class="apple-hidden" value="2" <% if (month==2) {out.print("selected");}%> >Febrero</option>
                                <option class="apple-hidden" value="3" <% if (month==3) {out.print("selected");}%> >Marzo</option>
                                <option class="apple-hidden" value="4" <% if (month==4) {out.print("selected");}%> >Abril</option>
                                <option class="apple-hidden" value="5" <% if (month==5) {out.print("selected");}%> >Mayo</option>
                                <option class="apple-hidden" value="6" <% if (month==6) {out.print("selected");}%> >Junio</option>
                                <option class="apple-hidden" value="7" <% if (month==7) {out.print("selected");}%> >Julio</option>
                                <option class="apple-hidden" value="8" <% if (month==8) {out.print("selected");}%> >Agosto</option>
                                <option class="apple-hidden" value="9" <% if (month==9) {out.print("selected");}%> >Septiembre</option>
                                <option class="apple-hidden" value="10" <% if (month==10) {out.print("selected");}%> >Octubre</option>
                                <option class="apple-hidden" value="11" <% if (month==11) {out.print("selected");}%> >Noviembre</option>
                                <option class="apple-hidden" value="12" <% if (month==12) {out.print("selected");}%> >Diciembre</option>
                            </select>
                            <select apple-part="com.apple.Dashcode.part.inputpopupbutton" apple-style-relative="height: 20px;" name="cmbAnio" id="cbxAnho" onchange="validafecha(event)" apple-group="popup2" disabled="true">
                                <option class="apple-hidden" <% if (year==2009) {out.print("selected");}%> >2009</option>
                                <option class="apple-hidden" <% if (year==2010) {out.print("selected");}%> >2010</option>
                                <option class="apple-hidden" <% if (year==2011) {out.print("selected");}%> >2011</option>
                                <option class="apple-hidden" <% if (year==2012) {out.print("selected");}%> >2012</option>
                                <option class="apple-hidden" <% if (year==2013) {out.print("selected");}%> >2013</option>
                                <option class="apple-hidden" <% if (year==2014) {out.print("selected");}%> >2014</option>
                            </select>
                            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="lblFormaPago"></div>
                            <select apple-part="com.apple.Dashcode.part.inputpopupbutton" apple-style-relative="height: 20px;" name="cmbFormaPago" id="cbxFormaPago" onchange="" apple-group="popup2" disabled="true">
                                <%
                                    for(int i=0; i<vectorCondicionpago.size(); i++) {
                                        if (vectorCondicionpago.get(i).getSrlIdcondicionpago()==idCondicionpago)
                                            {
                                            out.println("<option class=\"apple-hidden\" selected value=\""+ (vectorCondicionpago.get(i)).getSrlIdcondicionpago() + "\" id=\"" + "id\"" +">" + (vectorCondicionpago.get(i)).getCvIdentificador() + "</option>" );

                                        }
                                        else  {
                                            out.println("<option class=\"apple-hidden\" value=\""+ (vectorCondicionpago.get(i)).getSrlIdcondicionpago() + "\" id=\"" + "id\"" +">" + (vectorCondicionpago.get(i)).getCvIdentificador() + "</option>" );
                                        }
                                    
                                    }
                                %>
                            </select>
                            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="lblTotalFin"></div>
                            <!-- Agregado Cecv 11/06-->
                            <div apple-part="com.apple.Dashcode.part.webtext" class="apple-text apple-no-children" apple-default-image-visibility="hidden" apple-text-overflow="ellipsis" id="txtTotalFin"><%out.println(NF.format(objPedido.getRlMontototal()).toString());%></div>
                            <!-- Fin Cecv 11/06-->
                            <!--<div apple-part="com.apple.Dashcode.part.pushbutton" class="apple-no-children" apple-text-overflow="ellipsis" apple-style="image-theme: 0; image-shape: 3; image-button-type: 0; image-opacity: 1.00; image-top-color: 0,0,0,1; image-bottom-color: 1,1,1,1; image-radius: 5,5,5,5; image-border: 1; image-border-color: 0,0,0,0.2; image-border-width: 1; shine-on: 1; shine-strength: 0.50; shine-alpha-level: 0.25; shine-height: 0.50; glass-arc-height: 0.00; embossed-on: 1; embossed-depth: 1; embossed-shadow: 0.68; embossed-highlight: 0.3; shadow-include-shadow: 0;" id="btnTerminarPedido"></div>-->
                            
                        </div></div></div>
                <img src="mobVerPedido/Images/bottom.png" id="img2"></div></div>
    </div>
  </html:form>
</body>
</html:html>